home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel PPC / lib_test / test_eval15.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  517 b   |  41 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_EVAL15
  5.  
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      i: INTEGER;
  13.      r: REAL;
  14.      d: DOUBLE;
  15.       do
  16.      i := 1;
  17.      i := - i;
  18.      check
  19.         i = -1;
  20.      end;
  21.      r := -0.5;
  22.      r := -r;
  23.      check
  24.         r = 0.5;
  25.      end;
  26.      d := r.to_double;
  27.      check
  28.         d = 0.5;
  29.      end;
  30.      d := -d;
  31.      check
  32.         d = -0.5;
  33.      end;
  34.      
  35.      check
  36.         (32).to_character = ' '
  37.      end;
  38.       end;
  39.  
  40. end -- TEST_EVAL15
  41.